﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MamiMasterPage.master" AutoEventWireup="true"
    CodeFile="NewItem.aspx.cs" Inherits="Administration_NewItem" %>

<%@ Register Src="~/CustomControls/ImageEditor.ascx" TagName="ImageEditor" TagPrefix="mami" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="Server">
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
    <div id="breadcrumbs">
        <a href="default.aspx">Administrare</a>
        <asp:Literal ID="litNav" runat="server" Visible="true"></asp:Literal>
    </div>
    <div class="center red bold">
        <asp:Literal ID="litMessage" runat="server" />
    </div>
    <div class="container">
        <cc1:TabContainer ID="tabContainer" runat="server" ActiveTabIndex="0">
            <cc1:TabPanel HeaderText="Detalii" ID="tabDetalii" runat="server" Width="100%">
                <ContentTemplate>
                    <table cellpadding="0" cellspacing="4" border="0" width="100%">
                        <tr>
                            <td class="style1">
                                Titlu
                            </td>
                            <td>
                                <asp:TextBox ID="txtTitle" runat="server" Width="100%" />
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Camp obligatoriu"
                                    ControlToValidate="txtTitle" Display="Dynamic" ValidationGroup="grpNew" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Continut
                            </td>
                            <td colspan="2">
                                <cc2:Editor ID="htmlContent" runat="server" Width="100%" Height="700" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Camp obligatoriu"
                                    ControlToValidate="htmlContent" Display="Dynamic" ValidationGroup="grpNew" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="tabContinut" runat="server" HeaderText="Alte detalii">
                <ContentTemplate>
                    <table cellpadding="0" cellspacing="4" border="0" width="100%">
                        <tr>
                            <td class="style1">
                                Data postarii
                            </td>
                            <td>
                                <asp:TextBox ID="txtDatePosted" runat="server" Enabled="false" />
                                <asp:Image ID="imgCal" ImageUrl="~/Images/CalendarImg.png" runat="server" />
                                <cc1:CalendarExtender ID="calDatePosted" runat="server" TargetControlID="txtDatePosted"
                                    Format="MM/dd/yyyy" PopupButtonID="imgCal">
                                </cc1:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Meta Descriere
                            </td>
                            <td>
                                <asp:TextBox ID="txtWebDesc" runat="server" TextMode="MultiLine" Rows="2" Width="100%" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Cuvinte cheie
                            </td>
                            <td>
                                <asp:TextBox ID="txtKeys" runat="server" TextMode="MultiLine" Rows="2" Width="100%" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Sursa
                            </td>
                            <td>
                                <asp:TextBox ID="txtSource" runat="server" Width="100%" />
                            </td>
                        </tr>
                        <tr id="trParent" runat="server">
                            <td>
                                Categorie parinte
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlParentCateg" runat="server" Width="100%">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td>
                                <asp:CheckBox ID="chApproved" runat="server" Text="Aprobat pentru publicare" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="tabImagine" runat="server" HeaderText="Imagine">
                <ContentTemplate>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <table cellpadding="0" cellspacing="4" border="0" width="100%">
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="chIsFeatured" runat="server" CausesValidation="false" Text="Are imagine pe prima pagina?"
                                            OnCheckedChanged="chIsFeatured_CheckedChanged" AutoPostBack="true" />
                                    </td>
                                </tr>
                                <tr id="trFeaturedImage" runat="server" visible="false">
                                    <td>
                                        Imagine care apare pe prima pagina<br />
                                        (de preferat de dimensiune 466x249)
                                    </td>
                                    <td>
                                        <mami:ImageEditor ID="imageFeatured" runat="server" />
                                        <%--<asp:FileUpload ID="uplFeatured" runat="server" Width="50%" />--%>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <mami:ImageEditor ID="imageEditor" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="tabCategorie" runat="server" HeaderText="Customizare">
                <ContentTemplate>
                    <table cellpadding="0" cellspacing="4" border="0" width="100%">
                    </table>
                </ContentTemplate>
            </cc1:TabPanel>
        </cc1:TabContainer>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SiteStructure" runat="Server">
</asp:Content>
